package com.foreverwin.jzymes.production.cutter.mapper;


import com.foreverwin.jzymes.production.cutter.domain.ToolBreakLog;
import com.foreverwin.jzymes.production.tool.domain.TOOL;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Date ;
import java.util.Map;

public interface ToolBreakAdiviceMapper {

      /**查找所有刀具类型*/
      public List<TOOL> selectToolBysite(@Param("site") String site);

      /**换刀报表*/
      public List<ToolBreakLog> selectToolBreakByreport(@Param("site") String site, @Param("machineType") String machineType , @Param("resrce") String resrce, @Param("startTime") Date startTime, @Param("endTime")Date endTime);

      /**刀具实际寿命*/
      public Map<String,Object> selectmaxUsage(@Param("bo") String bo, @Param("toolLoc") String toolLoc );

      /**换刀类型中文描述*/
      public String selectfieldLabel(@Param("site") String site, @Param("fieldName") String fieldName );
}
